import { Component, Injector } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { BasePage } from "../../basePage";

/**
 * Generated class for the ImgDetailPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-img-detail',
  templateUrl: 'img-detail.html',
})
export class ImgDetailPage  extends BasePage {

  constructor(injector: Injector) {
    super(injector);
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad ImgDetailPage');
  }
  dismissCLI(){
    this.viewCtrl.dismiss(1);
  }
   //打开右侧菜单
   openMenu() {
    this.menuCtrl.enable(true, 'a');
    this.menuCtrl.enable(false, 'b');
    this.open();
  }
  open(){
    this.menuCtrl.open()
  }
}
